#include "Gun.h"
#include <iostream>

void Gun::addBullet(int count) {
    bullet_count += count;
}

bool Gun::shoot() {
    if(bullet_count <= 0) {
        std::cout << "There is no bullet in gun." << std::endl;
        return false;
    };
    bullet_count--;
    std::cout << "shoot successfully" << std::endl;
    return true;
}